<template>
	<view class="container">
		<view class="flex flex-wrap diygw-col-24 flex-direction-column flex3-clz">
			<view class="flex flex-wrap diygw-col-24 justify-between flex-clz">
				<view class="diygw-col-20">
					<view class="diygw-search">
						<view class="flex1 flex padding-xs solid radius">
							<text style="color: #555 !important" class="diy-icon-search"></text>
							<input class="flex1" name="search" type="" v-model="search" placeholder="请输入导师名称或企业名称" />
						</view>
						<view @tap="navigateTo" data-type="page" data-url="/pages/list" data-user_name="item.user_name" style="color: #333 !important" class="diygw-tag margin-left-xs radius-xs"> 搜索 </view>
					</view>
				</view>
				<view class="flex diygw-col-0">
					<view class="diygw-tag margin-xs radius">
						<text> 取消 </text>
					</view>
				</view>
			</view>
			<view class="flex flex-wrap diygw-col-24 justify-between flex1-clz">
				<view class="diygw-form-item diygw-col-20">
					<view class="title"> 历史搜索 </view>
					<view class="input">
						<input class="flex1" name="input" comfirm-type="done" type="text" v-model="input" placeholder="" />
					</view>
				</view>
				<view class="flex diygw-col-3">
					<view class="diygw-tag margin-xs radius">
						<text class="icon diy-icon-delete"></text>
						<text></text>
					</view>
				</view>
				<view class="flex flex-wrap diygw-col-24 justify-start flex2-clz" @tap="navigateTo" data-type="page" data-url="/pages/list" data-bus_name_="item.bus_name_">
					<view class="flex diygw-col-6 tag6-clz">
						<view class="diygw-tag margin-xs radius">
							<text> 王业 </text>
						</view>
					</view>
					<view class="flex diygw-col-6 tag4-clz">
						<view class="diygw-tag margin-xs radius">
							<text> 阿克置业 </text>
						</view>
					</view>
					<view class="flex diygw-col-6 tag3-clz">
						<view class="diygw-tag margin-xs radius">
							<text> 预制餐饮 </text>
						</view>
					</view>
					<view class="flex diygw-col-6 tag5-clz">
						<view class="diygw-tag margin-xs radius">
							<text> 预制快餐 </text>
						</view>
					</view>
					<view class="flex diygw-col-6 tag1-clz">
						<view class="diygw-tag margin-xs radius">
							<text> 金色集团 </text>
						</view>
					</view>
					<view class="flex diygw-col-6 tag7-clz">
						<view class="diygw-tag margin-xs radius">
							<text> 王立新 </text>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="version text-grey flex-direction-column flex diygw-col-24 justify-center align-center">
			<view> DIY官网提供技术支持 </view>
			<view> http://www.diygw.com </view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	//create by: 邓志锋 <280160522@qq.com> <https://www.diygw.com> DIYGW可视化设计一键生成源码
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				businessList: {
					code: '',
					data: {
						count: 0,
						list: [
							{
								bus_own_: '',
								user_phone_: '',
								bus_resource_: '',
								status_: '',
								user_name_: '',
								id_: '',
								bus_name_: '',
								bus_type_: '',
								bus_desc_: '',
								manage_time_: ''
							}
						]
					},
					isOk: true
				},
				userList: {
					code: '',
					data: {
						count: 0,
						list: [
							{
								user_phone_: '',
								user_type_: '',
								user_name_: '',
								id_: '',
								user_password_: ''
							}
						]
					},
					isOk: true
				},
				search: '',
				input: ''
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {},
			// 企业家列表 API请求方法
			async businessListApi() {
				let businessList = await this.$http.post(
					'https://agent.diygw.com/',
					{
						url: '/form/formCustSql/view/liststr_businessList',
						method: 'post',
						headers: {
							'Content-Type': 'application/x-www-form-urlencoded'
						},
						param: '{"curPage":1,"pageSize":"10","params":"{"timestamp":"1659492849561"}"}'
					},
					{
						'Content-type': 'application/json'
					},
					'json'
				);
				this.businessList = businessList;
			},
			// 用户列表 API请求方法
			async userListApi() {
				let userList = await this.$http.post(
					'https://agent.diygw.com/',
					{
						url: 'https://zy.andbaby888.com/form/formCustSql/view/liststr_userList',
						method: 'post',
						headers: {
							'Content-Type': 'application/x-www-form-urlencoded'
						},
						param: '{"curPage":1,"pageSize":"10","params":"{"timestamp":"1660101588792"}"}'
					},
					{
						'Content-type': 'application/json'
					},
					'json'
				);
				this.userList = userList;
			}
		}
	};
</script>

<style lang="scss" scoped>
	.tag6-clz {
		margin-left: 5px;
		border: 1px solid #eee;
		border-bottom-left-radius: 6px;
		box-shadow: 0px 1px 3px rgba(31, 31, 31, 0.16);
		overflow: hidden;
		width: calc(25% - 5px - 5px) !important;
		border-top-left-radius: 6px;
		margin-top: 5px;
		border-top-right-radius: 6px;
		border-bottom-right-radius: 6px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.tag4-clz {
		margin-left: 5px;
		border: 1px solid #eee;
		border-bottom-left-radius: 6px;
		box-shadow: 0px 1px 3px rgba(31, 31, 31, 0.16);
		overflow: hidden;
		width: calc(25% - 5px - 5px) !important;
		border-top-left-radius: 6px;
		margin-top: 5px;
		border-top-right-radius: 6px;
		border-bottom-right-radius: 6px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.tag3-clz {
		margin-left: 5px;
		border: 1px solid #eee;
		border-bottom-left-radius: 6px;
		box-shadow: 0px 1px 3px rgba(31, 31, 31, 0.16);
		overflow: hidden;
		width: calc(25% - 5px - 5px) !important;
		border-top-left-radius: 6px;
		margin-top: 5px;
		border-top-right-radius: 6px;
		border-bottom-right-radius: 6px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.tag5-clz {
		margin-left: 5px;
		border: 1px solid #eee;
		border-bottom-left-radius: 6px;
		box-shadow: 0px 1px 3px rgba(31, 31, 31, 0.16);
		overflow: hidden;
		width: calc(25% - 5px - 5px) !important;
		border-top-left-radius: 6px;
		margin-top: 5px;
		border-top-right-radius: 6px;
		border-bottom-right-radius: 6px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.tag1-clz {
		margin-left: 5px;
		border: 1px solid #eee;
		border-bottom-left-radius: 6px;
		box-shadow: 0px 1px 3px rgba(31, 31, 31, 0.16);
		overflow: hidden;
		width: calc(25% - 5px - 5px) !important;
		border-top-left-radius: 6px;
		margin-top: 5px;
		border-top-right-radius: 6px;
		border-bottom-right-radius: 6px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.tag7-clz {
		margin-left: 5px;
		border: 1px solid #eee;
		border-bottom-left-radius: 6px;
		box-shadow: 0px 1px 3px rgba(31, 31, 31, 0.16);
		overflow: hidden;
		width: calc(25% - 5px - 5px) !important;
		border-top-left-radius: 6px;
		margin-top: 5px;
		border-top-right-radius: 6px;
		border-bottom-right-radius: 6px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.container {
		padding-left: 0px;
		padding-right: 0px;

		font-size: 12px;
	}
</style>
